package com.jiyun.feign;

import com.jiyun.entity.User;
import com.jiyun.vo.ResponseBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "day14-users")
public interface UserFeign {
    @RequestMapping("users/findAll")
    public List<User> findAll ();

    @RequestMapping("users/findByCourseId")
    ResponseBean findByCourseId(@RequestParam("id") Integer id);

    @RequestMapping("squads/findSquadsAll")
    ResponseBean findSquadsAll();
}
